<template>
	<view>
		<uni-list :border="false">
			<uni-list-item :title="froms.title" :leftTitle="leftTitle" ></uni-list-item>
		</uni-list>
		<textarea class="zy-textarea" value="" placeholder-class="zy-placeholder-class" placeholder="请填写10个字以上的内容描述以便我们提供更好的帮助" />
		<view class="zy-add-Img" >
			<imgUpload :frontBaseUrl="frontBaseUrl" :closeTip="false" :header="header"  :imgCount="uploadImgCount" :uploadImgCount="uploadImgCount" loading async :url="imgUrl" @result="resultUrl" @delImg="delImg"></imgUpload>
		</view>
		<view class="zy-add-btn">
			提交
		</view>
	</view>
</template>

<script>
	import uniList from '@/components/uni-list/uni-list.vue'
	import uniListItem from '@/components/uni-list-item/uni-list-item.vue'
	import imgUpload from '@/components/poiuy-uImgUpload/imgUpload.vue'
	import * as ResponseStatus from '@/common/response-status.js'
	import {
		doGet,
		BASE_URL,
		doPostJson,
		showInfoToast,
		MY_SHARE_CODE,
		SHARE_CODE_PAGE_IMG,
		SHARE_TITLE,
		SHARE_CODE,
		FRONT_BASE_URL,
		LOCAL_FILE_STORAGE,
		USER_ROLES,
		USER_ID,
		USER_NICKNAME,
		USER_HEADICON,
		USER_GENDER,
		USER_PHONE,
		USER_TOKEN_KEY
	} from '@/common/util.js'
	export default {
		components: {
			uniList,
			uniListItem,
			imgUpload
		},
		data() {
			return {
				imgUrl:BASE_URL+"/user-dynamic-resource/user/upload-img",
				frontBaseUrl: FRONT_BASE_URL,
				uploadImgCount:4,
				resourceType:0,
				header:{
					'Authorization': 'Bearer ' + uni.getStorageSync(USER_TOKEN_KEY),
					"App-Auth-appid": "wxxcxappid"
				},
				froms:{
					title:""
				},
				leftTitle: {
					color: '#646464',
					size: 30,
					fontWeight:0
				}
			};
		},
		onLoad(data) {
			console.log(data)
			if(data.title){
				this.froms.title = data.title
			}
		}
	}
</script>

<style lang="scss">
	@import '@/common/zywork-main.scss';
	
	.zy-textarea{
		width: 100%;
		padding: 0rpx $padding-left-right;
		height: 220rpx;
		border-bottom: solid 1rpx $border-color;
	}
	.zy-placeholder-class{
		font-size: 28rpx;
	}
	.zy-add-Img{
		margin-top: 20rpx;
		padding: 0rpx $padding-left-right;
	}
	.zy-add-btn{
		margin: 0 auto;
		margin-top: 200rpx;
		width: 350rpx;
		height: 80rpx;
		line-height: 80rpx;
		text-align: center;
		background-color: #00aa7f;
		border-radius: 15rpx;
		color: $primary-color;
	}
</style>
